-- GENERATED SPELL FOR [Ith'rix the Harvester] --


function spell0_25453(pUnit, Event) --@Poison Stinger,n/a--
pUnit:FullCastSpellOnTarget(25748,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25453', 12000, 1)
end

function spell1_25453(pUnit, Event) --@Stinger Rage,Self--
pUnit:FullCastSpellOnTarget(34392,pUnit)
pUnit:RegisterEvent('Sorts_25453', 6303, 1)
end

function spell2_25453(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(45592,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25453', 11500, 1)
end

function Sorts_25453(pUnit, Event)
local choix_sorts_25453 = math.random(0, 2)
if choix_sorts_25453 == 0 then
pUnit:RegisterEvent('spell0_25453', 1, 1)
end
if choix_sorts_25453 == 1 then
pUnit:RegisterEvent('spell1_25453', 1, 1)
end
if choix_sorts_25453 == 2 then
pUnit:RegisterEvent('spell2_25453', 1, 1)
end
end

function mob25453_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25453', math.random(1500, 3000), 1)
end

function mob25453_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25453_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25453_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25453, 1, 'mob25453_Action')
RegisterUnitEvent(25453, 2, 'mob25453_Leave')
RegisterUnitEvent(25453, 3, 'mob25453_Kill')
RegisterUnitEvent(25453, 4, 'mob25453_Die')
